<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="js/jquery-1.12.4.min.js"></script>
    <script src="js/snack.js"></script>
</head>
<style>
    ul {
        width: 400px;
        height: 400px;
        border: 1px solid black;
        list-style: none;
        margin: 200px auto;
        padding: 0px;
    }
    
    li {
        margin: 0px;
        padding: 0px;
        width: 20px;
        height: 20px;
        float: left;
    }
    
    .snack {
        background-color: hotpink;
    }
    
    .food {
        background-color: yellowgreen;
    }
    
    .snackHead {
        background-color: pink;
    }
    
    .oper {
        position: absolute;
        top: 200px;
        left: 50px;
    }
</style>
<style></style>

<body>
    <ul class="game-box">

    </ul>
    <div class="oper">
        <h1>操作方法</h1>
        <p>键盘WASD和上下左右方向键控制方向<br>空格键暂停</p>
    </div>
</body>

</html>